<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.sms.plateform.common.finals.Constants"/>
<%@ include file="/WEB-INF/jsp/include/include.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv="Cache-Control" content="no-cache, must-revalidate">
<title><%=Constants.APPLICATION_TITLE %></title>
<link rel="stylesheet" type="text/css" href="css/style_login.css" />
<script language="javascript" src="js/jquery-1.6.2.min.js"></script>
<script language="javascript" src="js/jquery.blockUI.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("input").focus(function(){
		$("#msg").html("");
	});
});
function login(){
	if(!document.getElementById("user").value){
		$("#msg").html("请输入用户名！");
		return;
	}
	if(!document.getElementById("pwd").value){
		$("#msg").html("请输入密码！");
		return;
	}
	document.getElementById("loginForm").submit();
}
function key(){
	if(event.keyCode == 13){login();}
}
</script>
<style>
body {
	min-width: 600px;
	overflow: hidden;
}
</style>
</head>
<body>
	<div id="warp">
		<div id="loginBox">
			<div class="leftBox">
				<form id="loginForm" action="login.do" method="post">
				<input type="hidden" name="action" value="do" />
				<div id="login">
					<table>
						<tr>
							<td>用户名</td>
							<td><input class="text" id="user" name="user" value="root" onkeydown="key();" /></td>
						</tr>
						<tr>
							<td>密码</td>
							<td><input class="text" type="password" id="pwd" name="pwd" value="111111" onkeydown="key();"/></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td><a class="forget" href="javascript:void(0);">忘记密码?</a></td>
							<td align="right"><a class="whitebtn" href="javascript:login();">登录</a></td>
						</tr>
						<tr>
							<td colspan="2" id="msg">${msg }</td>
						</tr>
					</table>
				</div>
				</form>
			</div>
			<div class="rightBox">
				<div id="info">
					<br/>
					<br/>
					<br/>
					<br/>
					<hr style="border:1px solid #fff;"/>
					<p>公告：系统研发中...</p>
					<hr style="border:1px solid #fff;"/>
				</div>
				<div>
					<table id="btnPanel">
						<tr>
							<td><a class="bluebtn" href="javascript:void(0);">申请试用</a></td>
							<td><a class="bluebtn" href="javascript:void(0);">用户反馈</a></td>
						</tr>
						<tr>
							<td><a class="bluebtn" href="javascript:void(0);">联系我们</a></td>
							<td><a class="bluebtn" href="javascript:void(0);">在线升级</a></td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<script language="JavaScript"> 
             if (window != top) 
                       top.location.href = location.href; 
    </script>
</body>
</html>